package com.example.qrcodecamera;

public class MaterialInfo {
    private String materialId;
    private String materialName;
    private String specification;
    private double currentWeight;

    public MaterialInfo(String id, String name, String spec, double weight) {
        this.materialId = id;
        this.materialName = name;
        this.specification = spec;
        this.currentWeight = weight;
    }

    // Getter方法
    public String getMaterialId() { return materialId; }
    public String getMaterialName() { return materialName; }
    public String getSpecification() { return specification; }
    public double getCurrentWeight() { return currentWeight; }
}